package com.dldata.devtools30.entity;

import jakarta.persistence.*;

/**
 * Created by 呵呵 on 2017-09-22.
 */
@Entity
@Table(name = "devt_form_listtempl_theader")
public class DevtFormListtemplTheaderEntity {
    private String id;
    private String formid;
    private String templeid;
    private Integer xh;
    private String headname;
    private Integer width;
    private Integer height;
    private String bz;

    @Basic
    @Column(name = "bz", nullable = true, insertable = true, updatable = true, length = 64)
    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "formid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getFormid() {
        return formid;
    }

    public void setFormid(String formid) {
        this.formid = formid;
    }

    @Basic
    @Column(name = "templeid", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTempleid() {
        return templeid;
    }

    public void setTempleid(String templeid) {
        this.templeid = templeid;
    }

    @Basic
    @Column(name = "xh", nullable = true, insertable = true, updatable = true)
    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }

    @Basic
    @Column(name = "headname", nullable = true, insertable = true, updatable = true, length = 100)
    public String getHeadname() {
        return headname;
    }

    public void setHeadname(String headname) {
        this.headname = headname;
    }

    @Basic
    @Column(name = "width", nullable = true, insertable = true, updatable = true)
    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    @Basic
    @Column(name = "height", nullable = true, insertable = true, updatable = true)
    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DevtFormListtemplTheaderEntity that = (DevtFormListtemplTheaderEntity) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (formid != null ? !formid.equals(that.formid) : that.formid != null) return false;
        if (templeid != null ? !templeid.equals(that.templeid) : that.templeid != null) return false;
        if (xh != null ? !xh.equals(that.xh) : that.xh != null) return false;
        if (headname != null ? !headname.equals(that.headname) : that.headname != null) return false;
        if (width != null ? !width.equals(that.width) : that.width != null) return false;
        if (height != null ? !height.equals(that.height) : that.height != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (formid != null ? formid.hashCode() : 0);
        result = 31 * result + (templeid != null ? templeid.hashCode() : 0);
        result = 31 * result + (xh != null ? xh.hashCode() : 0);
        result = 31 * result + (headname != null ? headname.hashCode() : 0);
        result = 31 * result + (width != null ? width.hashCode() : 0);
        result = 31 * result + (height != null ? height.hashCode() : 0);
        return result;
    }
}
